# from phone import Phone
#
# p = Phone()
# print(p.find('17636321641'))

class Animal:
    def __init__(self, name):
        self.name = name

    def eat(self):
        print(self.name, "吃饭")


class Dog(Animal):
    def __init__(self, name, age, sex):
        super().__init__(name)
        self.age = age
        self.sex = sex

    def eat(self):
        super(Dog, self).eat()
        print(self.age, "岁")
        print(self.sex, "性")


# dog01 = Dog("小白", 5, "雌")
# dog01.eat()


class Dog:
    name = '大黄'

    @classmethod
    def print_name(cls, name):
        cls.name = name
        print(Dog.name)


# Dog.print_name("马云")


class Student:
    def __init__(self, name):
        self.name = name

    @property
    def name(self):
        return self.__name

    @name.setter
    def name(self, name):
        self.__name = name

    def __str__(self):
        return self.name


s = Student('lisi')
print(s.__str__())
print(s.__repr__())

# stu = Student("tom")
# print(stu.name)

# print(isinstance())
# print(issubclass())
